package com.lyl.xxx.common.constants;

/**
 * @author Mr.Luo
 * @date 2022-09-19 12:04
 * @desc 通用常量
 */
public class Constants {
    private Constants() {
    }

    /**
     * 一秒
     */
    public static final long ONE_SECOND = 1000;
    /**
     * 一分钟
     */
    public static final long ONE_MINUTE = 60 * ONE_SECOND;
    /**
     * 一小时
     */
    public static final long ONE_HOUR = 60 * ONE_MINUTE;
    /**
     * 一天
     */
    public static final long ONE_DAY = 24 * ONE_HOUR;
    /**
     * 一周
     */
    public static final long ONE_WEEK = 7 * ONE_DAY;
    /**
     * 一个月
     */
    public static final long ONE_MONTH = 30 * ONE_DAY;
    /**
     * 一年
     */
    public static final long ONE_YEAR = 12 * ONE_MONTH;

    /**
     * 登录用户id
     */
    public static final String LOGIN_USER_ID = "userId";

    /**
     * 登录用户token
     */
    public static final String LOGIN_USER_TOKEN = "token";
}
